#include "widget.h"
#include "ui_widget.h"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
//    QPushButton * btn_confirm = new QPushButton("this",this);
//    QPushButton * btn_n1 = new QPushButton("2",this);
//    int a=btn_confirm->width();
//    int b=btn_confirm->height();
//    btn_n1->move(a+100,b+100);
//    setWindowTitle("jndns");
//    mypushbutton * btn_2 = new mypushbutton(this);
//    btn_2->setText("new");
//    btn_2->move(200,0);
//    connect(btn_2,&mypushbutton::clicked,this,&Widget::close);//绑定按钮事件 connnect 按钮 按钮触发条件 触发的对象 触发事件


}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_Button_Main_Details_clicked()
{
    new_class_details = new Class_Details;
    new_class_details->show();
}

void Widget::on_Button_Main_Enter_clicked()
{
    new_demo = new Demo;
    new_demo->show();
}
